package com.whmskj.xjlhsc.panel.service.imp;

import com.whmskj.xjlhbc.db.DataSource;
import com.whmskj.xjlhbc.db.DataSourceType;
import com.whmskj.xjlhsc.panel.mapper.ProduceWenMapper;
import com.whmskj.xjlhsc.panel.pojo.entity.WorkshopTemperatureAndHumidity;
import com.whmskj.xjlhsc.panel.service.IProduceWenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jiaruchun
 * @date 2025-09-15 13:23
 */
@Service
public class ProduceWenServiceImpl implements IProduceWenService {
    @Autowired
    private ProduceWenMapper produceMapper;

    @Override
    @DataSource(DataSourceType.SC)
    public List<WorkshopTemperatureAndHumidity> getProduceWenData(String machinenumber) {
        //车间温湿度--
        List<WorkshopTemperatureAndHumidity> workshopTemperatureAndHumidityList = produceMapper.getWorkshopTemperatureAndHumidityList(machinenumber);
        return workshopTemperatureAndHumidityList;
    }
}
